package iita

import "strings"

func GetDeviceIdByTopic(topic string) string {
	split := strings.Split(topic, "/")
	return split[3]
}

func GetServiceNameByTopic(topic string) string {
	split := strings.Split(topic, "/")
	return split[6]
}
